package com.study.zouchao.superproject.register;

import android.content.Intent;

import com.study.zouchao.superproject.login.model.entity.User;
import com.study.zouchao.superproject.modifyuserinfo.model.entity.updateinfo.ModifyUserInfoResult;

import java.util.Map;

import rx.Observable;

/**
 * Created by Administrator on 2017/1/29.
 */

public interface IRegisterContract {
    /**
     *
     */
    interface IRegisterModel {
        Observable<ModifyUserInfoResult> saveModifyUserInfo(Map<String, String> params);
    }

    /**
     *
     */
    interface IRegisterPresenter {
        //view销毁时调用
        void onDestoryPresnter();
        //
        void confirmRegister(String username, String nickname, String pwd, String ensurePwd);
    }

    /**
     *
     */
    interface IRegisterView {
        //
        void gotoLoginActivity();
        //显示base的loading
        void showBaseLoading(boolean isShow);
        //finish掉当前界面
        void finishCurrentRegisterActivity();
        //
        void showUsernameError(String msg);
        //
        void showNicknameError(String msg);
        //
        void showPwdError(String msg);
        //
        void showEnsurePwdError(String msg);
        //
        void initInfos(User user);
        //
        void showSnackBar(String title, int showLength);
    }
}
